package com.cyq.blog.util;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyq.blog.entity.Category;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author chenyeqing
 * @Date 2021/5/17 21:02
 */
public class MybatisPlusUtil {

    public static <E> Page<E> getPage(int current) {
        return new Page<E>(current, MyConstant.NUMBER_OF_PAGES);
    }
    public static <E> Page<E> getPage(int current, int pageSize) {
        return new Page<E>(current, pageSize);
    }


}
